package com.ruoqing.config.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
	* @author YaoXian
	* @title: TestController
	* @projectName ruoxi-blog
	* @description: 若兮微服务 - 分布式配置中心表现层测试
	* @date 2020-11-06 14:39
	*/
@RestController
@CrossOrigin
public class TestController {
		
		
		@PreAuthorize(value = "hasRole('super_admin')")
		@GetMapping(path = "/getConfig")
		public String getConfig() {
				return "分布式配置中心获取配置文件信息" ;
		}
		
		@GetMapping(path = "/testConfig")
		public String testConfig() {
				return "分布式配置中心获取配置文件信息" ;
				
		}
		
		@GetMapping(path = "/test")
		public String test(){
				return "不需要Token";
		}
}
		

